package com.bdqn.qnnews.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xlz
 * @since 2023-12-25
 * @description 管理员用户信息表
 */
@Data
// 链式语法
@Accessors(chain = true)
@TableName("ad_user")
@Schema(name = "AdUser 对象", description = "管理员用户信息表 实体类")
public class AdUser {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @Schema(description = "登录用户名")
    private String name;

    @Schema(description = "登录密码")
    private String password;

    @Schema(description = "盐")
    private String salt;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "头像")
    private String image;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "状态	0 暂时不可用	1 永久不可用 9 正常可用")
    private Integer status;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "最后一次登录时间")
    private LocalDateTime loginTime;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;


}
